package com.appspot.dco.client.home;

import com.appspot.dco.client.AbstractView;
import com.appspot.dco.client.Presenter;
import com.appspot.dco.client.navigation.PageId;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.ImplementedBy;

public class HomePresenter extends Presenter {

	/**
	 * PageId associated to the presenter.
	 */
	private static final PageId PAGE_ID = new PageId("home");

	/**
	 * Description of the view managed by this presenter.
	 */
	@ImplementedBy(HomeView.class)
	public interface View extends AbstractView {

	}

	/** The view. */
	private final View view;

	public HomePresenter(View view) {
		this.view = view;
	}

	@Override
	public PageId getPageId() {
		return PAGE_ID;
	}

	@Override
	public Widget getView() {
		return ((Widget) this.view);
	}
}
